home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMBeforeUnloadEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  111 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMBeforeUnloadEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMBeforeUnloadEvent_h__
  6. #define __gen_nsIDOMBeforeUnloadEvent_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMEvent_h__
  10. #include "nsIDOMEvent.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMBeforeUnloadEvent */
  19. #define NS_IDOMBEFOREUNLOADEVENT_IID_STR "da19e9dc-dea2-4a1d-a958-9be375c9799c"
  20.  
  21. #define NS_IDOMBEFOREUNLOADEVENT_IID \
  22.   {0xda19e9dc, 0xdea2, 0x4a1d, \
  23.     { 0xa9, 0x58, 0x9b, 0xe3, 0x75, 0xc9, 0x79, 0x9c }}
  24.  
  25. /**
  26.  * The nsIDOMBeforeUnloadEvent interface is the interface for events
  27.  * sent to handlers of the "beforeunload" event. This event is
  28.  * non-standard. Interface derived from Microsoft IE's event
  29.  * implementation.
  30.  *
  31.  * http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events.asp
  32.  *
  33.  */
  34. class NS_NO_VTABLE nsIDOMBeforeUnloadEvent : public nsIDOMEvent {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMBEFOREUNLOADEVENT_IID)
  38.  
  39.   /**
  40.    * Attribute used to pass back a return value from a beforeunload
  41.    * handler
  42.    */
  43.   /* attribute DOMString returnValue; */
  44.   NS_IMETHOD GetReturnValue(nsAString & aReturnValue) = 0;
  45.   NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIDOMBEFOREUNLOADEVENT \
  51.   NS_IMETHOD GetReturnValue(nsAString & aReturnValue); \
  52.   NS_IMETHOD SetReturnValue(const nsAString & aReturnValue); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIDOMBEFOREUNLOADEVENT(_to) \
  56.   NS_IMETHOD GetReturnValue(nsAString & aReturnValue) { return _to GetReturnValue(aReturnValue); } \
  57.   NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) { return _to SetReturnValue(aReturnValue); } 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIDOMBEFOREUNLOADEVENT(_to) \
  61.   NS_IMETHOD GetReturnValue(nsAString & aReturnValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnValue(aReturnValue); } \
  62.   NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnValue(aReturnValue); } 
  63.  
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66.  
  67. /* Header file */
  68. class nsDOMBeforeUnloadEvent : public nsIDOMBeforeUnloadEvent
  69. {
  70. public:
  71.   NS_DECL_ISUPPORTS
  72.   NS_DECL_NSIDOMBEFOREUNLOADEVENT
  73.  
  74.   nsDOMBeforeUnloadEvent();
  75.  
  76. private:
  77.   ~nsDOMBeforeUnloadEvent();
  78.  
  79. protected:
  80.   /* additional members */
  81. };
  82.  
  83. /* Implementation file */
  84. NS_IMPL_ISUPPORTS1(nsDOMBeforeUnloadEvent, nsIDOMBeforeUnloadEvent)
  85.  
  86. nsDOMBeforeUnloadEvent::nsDOMBeforeUnloadEvent()
  87. {
  88.   /* member initializers and constructor code */
  89. }
  90.  
  91. nsDOMBeforeUnloadEvent::~nsDOMBeforeUnloadEvent()
  92. {
  93.   /* destructor code */
  94. }
  95.  
  96. /* attribute DOMString returnValue; */
  97. NS_IMETHODIMP nsDOMBeforeUnloadEvent::GetReturnValue(nsAString & aReturnValue)
  98. {
  99.     return NS_ERROR_NOT_IMPLEMENTED;
  100. }
  101. NS_IMETHODIMP nsDOMBeforeUnloadEvent::SetReturnValue(const nsAString & aReturnValue)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* End of implementation class template. */
  107. #endif
  108.  
  109.  
  110. #endif /* __gen_nsIDOMBeforeUnloadEvent_h__ */
  111.